<?php
try{
    include '../ini.php';
    if(empty($_GET['search'])){
        throw new Exception('Từ bạn tìm không có');
    }
    if(isset($_GET['search'])){
        $_GET['search']=$dt_xl_security->xss_clean($_GET['search']);
        $_GET['search']=$dt_xl_security->xl_search($_GET['search']);
        header("Location: /tag/".$_GET['search'].'/');
    }
}catch(Exception $e){
    $dbh=NULL;
    $_SESSION['msg']=$e->getMessage();
    $_SESSION['type_msg']='error';
    header('Location: '.$_SERVER['HTTP_REFERER']);
}